/**
 * 
 */
package edu.cmu.mism.dgjava.jobs;

import org.eclipse.core.runtime.jobs.ISchedulingRule;

/**
 * @author Christian
 * 
 */
public class OptionCalculationJobRule implements ISchedulingRule {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.core.runtime.jobs.ISchedulingRule#contains(org.eclipse.core
	 * .runtime.jobs.ISchedulingRule)
	 */
	@Override
	public boolean contains(ISchedulingRule rule) {
		return rule.getClass() == OptionCalculationJobRule.class;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.core.runtime.jobs.ISchedulingRule#isConflicting(org.eclipse
	 * .core.runtime.jobs.ISchedulingRule)
	 */
	@Override
	public boolean isConflicting(ISchedulingRule rule) {
		return rule.getClass() == OptionCalculationJobRule.class;

	}

}
